package com.csx.gulimall.product.exception;

import lombok.Getter;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
@Getter
public enum BizCode {
    UNKNOWN_EXCEPTION(10000,"系统未知异常"),
    VALID_EXCEPTION(10001,"参数格式校验失败");
    private final Integer code;
    private final String message;

    BizCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
